
export default {
    namespaced: true,
    state: {
        show: false,
        isShow:false,
    },
    getters: {
        
    },
    mutations: {
        login(state,{path}) {
            let token=localStorage.getItem("token")
            if(token==null){
                state.show=true;
            }else if(token!=null){
                this.$router.push(path)
                // console.log("1");
            }
        }
    }
}